package ithink.link.base.message;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by zaqb on 17-10-24.
 */
public class LinkMessage {
    public static byte FLAG_RANDOM_KEY = 'K';
    public static byte FLAG_PART_KEY = 'D';


    public static int INTERACTIVE_MAX_BODY_LEN = 1024*100;
    public static int INTERACTIVE_HEADER_LEN = 16;

    private byte flag;
    private int len;
    private short version = 0;
    private JSONObject text = new JSONObject();


    public byte getFlag() {
        return flag;
    }

    public void setFlag(byte flag) {
        this.flag = flag;
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public JSONObject getText() {
        return text;
    }

    public void setText(JSONObject text) {
        this.text = text;
    }

    public short getVersion() {
        return version;
    }

    public void setVersion(short version) {
        this.version = version;
    }

    public void release() {

    }

}
